#include <iostream>
#include <sys/types.h>
#include <signal.h>
#include <cstring>
int main(int argc, const char* argv[])
{
    if(argc != 3)
    {
        std::cout << "stdin error" << std::endl;
        std::cout << "Usage: mykill -num -pid" << std::endl;
        return 0;
    }
    int ret = kill(atoi(argv[2]), atoi(argv[1] + 1));
    if(ret == -1)
    {
        std::cout << "kill error: " << strerror(errno) << std::endl;
    }
    return 0;
}